home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4288 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: gail.ripco.com!mambuhl
  2. From: mambuhl@ripco.com (Martin Ambuhl)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: HELP..Need to find wh
  5. Date: 3 Feb 1996 00:29:41 GMT
  6. Organization: Ripco Communications, Inc.
  7. Message-ID: <4eua9l$s5k@gail.ripco.com>
  8. NNTP-Posting-Host: golden.ripco.com
  9.  
  10. Jose Andres Giraldez <vittohue@wpi.edu>
  11. in <Pine.OSF.3.91.960201012731.27628B-100000@reno.WPI.EDU> asks:
  12.  
  13. >I need to find why atan2 gives a number smaller than -180 and greater
  14. >than 180.
  15.  
  16. (BTW atan2 is restricted to a range much smaller than -180,180.  Since
  17. we know what you mean, let that pass...)
  18.  
  19. After cleaning up the code slightly (stuff like removing the syntax
  20. errors at the end, adding a return, etc.) I supplied values for N_MEAS
  21. and x[] and y[], which I suppose are in the extremely non-standard
  22. header "/cs/cs1005/problems/problem2/problem2.h", and provided an
  23. initialization: double radius_sum = 0;
  24.  
  25. Compiling and running with 4 different compilers failed to replicate
  26. your problem.  If particular values of x[] and y[] produce your problem,
  27. let us in on them.
  28.  
  29.                                                                                                                         
  30. --
  31. * Martin Ambuhl       net: mambuhl@ripco.com
  32. * Chicago, IL (USA)    
  33.